package com.ccom.ccomstart.orderTest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description 测试@Order
 * @Author zjj
 * @Date 2021/9/9
 */
@Component
public class RatingRetrieverUnitTest {
    @Autowired
    private List<Rating> ratings;

    @Bean
    public void givenOrder_whenInjected_thenByOrderValue() {
        System.out.println("@order注解测试");
        System.out.println(ratings.get(0).getRating());
        System.out.println(ratings.get(1).getRating());
        System.out.println(ratings.get(2).getRating());
    }
}
